// show_student.cpp -- 显示学生信息
#include "../include/student_score_system.h"
#include <iostream>

void showStudent(const System *sys)
{
    //system("cls");
    using std::cout;
    using std::endl;
    std::string 女;
    std::string 男;
    cout << "===================================================" << endl;
    cout << "*                   显示学生信息                  *" << endl;
    cout << "===================================================" << endl;
    for (int i = 0; i < sys->num; i++)
    {
        cout << "姓名：" << sys->stu[i].name_
             << " 性别：" << (sys->stu[i].sex_ == 1 ? 男 : 女)
             << " 学号：" << sys->stu[i].id_
             << " 语文成绩：" << sys->stu[i].language_
             << " 数学成绩：" << sys->stu[i].math_
             << " 英语成绩：" << sys->stu[i].english_
             << endl;
    }
    system("pause");
    system("cls");
    showMenu();
    selectOption();
}